package com.emm.yixun.common.model.dto;


import com.github.sd4324530.fastexcel.annotation.MapperCell;

import net.sf.oval.constraint.NotBlank;

/**
 * 交易数据Model
 * 用于导入认购、签约数据
 * @author junze.liu
 *
 */
public class MarketingModel {
	
	@MapperCell(cellName = "组团")
	private String premisesName;
	
	@MapperCell(cellName = "楼栋")
	private String buildingName;
	
	@MapperCell(cellName = "单元")
	private String unitName;
	
	@NotBlank(message = "房号不能为空")
	@MapperCell(cellName = "房号")
	private String roomName;
	
	@NotBlank(message = "客户姓名不能为空")
	@MapperCell(cellName = "客户姓名")
	private String customerName;

	@NotBlank(message = "客户手机号不能为空")
	@MapperCell(cellName = "客户手机号")
	private String customerPhone;

	@NotBlank(message = "证件类型不能为空")
	@MapperCell(cellName = "证件类型")
	private String documentType;
	
	@NotBlank(message = "证件号码不能为空")
	@MapperCell(cellName = "证件号码")
	private String documentNumber;
	
	@NotBlank(message = "邮寄地址不能为空")
	@MapperCell(cellName = "邮寄地址")
	private String contactAddress;
	
	@NotBlank(message = "邮编不能为空")
	@MapperCell(cellName = "邮编")
	private String postcode;
	
	@MapperCell(cellName = "认购编号")
	private String subscribeCode;
	
	@MapperCell(cellName = "认购日期")
	private String subscribeDate;
	
	@MapperCell(cellName = "认购转签约日期")
	private String conversionSignDate;
	
	@MapperCell(cellName = "应收认购金(元)")
	private String depositReceivable;
	
	@NotBlank(message = "折后总价不能为空")
	@MapperCell(cellName = "折后总价")
	private String discountAfterPrice;
	
	@NotBlank(message = "成交类别不能为空")
	@MapperCell(cellName = "成交类别")
	private String dealCategory;
	
	@NotBlank(message = "经纪人不能为空")
	@MapperCell(cellName = "经纪人")
	private String agentName;
	
	@NotBlank(message = "分佣比例不能为空")
	@MapperCell(cellName = "分佣比例")
	private String proportionCommission;
	
	@MapperCell(cellName = "折后说明")
	private String discountNote;
	
	@MapperCell(cellName = "备注")
	private String remark;
	
	@MapperCell(cellName = "是否已收款")
	private String isHaveSubscribeAmount;
	
	@MapperCell(cellName = "是否已转签约")
	private String isConversionSign;
	
	@MapperCell(cellName = "合同编号")
	private String signCode;
	
	@MapperCell(cellName = "支付方式")
	private String paymentMethod;
	
	@MapperCell(cellName = "签约日期")
	private String didTime;
	
	@MapperCell(cellName = "合同类型")
	private String contactType;
	
	/**
	 * 保存错误原因
	 */
	private String errorInfo;

	public String getRoomName() {
		return roomName;
	}

	public void setRoomName(String roomName) {
		this.roomName = roomName;
	}

	public String getCustomerName() {
		return customerName;
	}

	public void setCustomerName(String customerName) {
		this.customerName = customerName;
	}

	public String getCustomerPhone() {
		return customerPhone;
	}

	public void setCustomerPhone(String customerPhone) {
		this.customerPhone = customerPhone;
	}

	public String getDocumentType() {
		return documentType;
	}

	public void setDocumentType(String documentType) {
		this.documentType = documentType;
	}

	public String getDocumentNumber() {
		return documentNumber;
	}

	public void setDocumentNumber(String documentNumber) {
		this.documentNumber = documentNumber;
	}

	public String getContactAddress() {
		return contactAddress;
	}

	public void setContactAddress(String contactAddress) {
		this.contactAddress = contactAddress;
	}

	public String getPostcode() {
		return postcode;
	}

	public void setPostcode(String postcode) {
		this.postcode = postcode;
	}

	public String getSubscribeCode() {
		return subscribeCode;
	}

	public void setSubscribeCode(String subscribeCode) {
		this.subscribeCode = subscribeCode;
	}

	public String getSubscribeDate() {
		return subscribeDate;
	}

	public void setSubscribeDate(String subscribeDate) {
		this.subscribeDate = subscribeDate;
	}

	public String getConversionSignDate() {
		return conversionSignDate;
	}

	public void setConversionSignDate(String conversionSignDate) {
		this.conversionSignDate = conversionSignDate;
	}

	public String getDepositReceivable() {
		return depositReceivable;
	}

	public void setDepositReceivable(String depositReceivable) {
		this.depositReceivable = depositReceivable;
	}

	public String getDiscountAfterPrice() {
		return discountAfterPrice;
	}

	public void setDiscountAfterPrice(String discountAfterPrice) {
		this.discountAfterPrice = discountAfterPrice;
	}

	public String getDealCategory() {
		return dealCategory;
	}

	public void setDealCategory(String dealCategory) {
		this.dealCategory = dealCategory;
	}

	public String getAgentName() {
		return agentName;
	}

	public void setAgentName(String agentName) {
		this.agentName = agentName;
	}

	public String getProportionCommission() {
		return proportionCommission;
	}

	public void setProportionCommission(String proportionCommission) {
		this.proportionCommission = proportionCommission;
	}

	public String getDiscountNote() {
		return discountNote;
	}

	public void setDiscountNote(String discountNote) {
		this.discountNote = discountNote;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getIsHaveSubscribeAmount() {
		return isHaveSubscribeAmount;
	}

	public void setIsHaveSubscribeAmount(String isHaveSubscribeAmount) {
		this.isHaveSubscribeAmount = isHaveSubscribeAmount;
	}

	public String getIsConversionSign() {
		return isConversionSign;
	}

	public void setIsConversionSign(String isConversionSign) {
		this.isConversionSign = isConversionSign;
	}
	
	public String getErrorInfo() {
		return errorInfo;
	}

	public void setErrorInfo(String errorInfo) {
		this.errorInfo = errorInfo;
	}

	public String getPremisesName() {
		return premisesName;
	}

	public void setPremisesName(String premisesName) {
		this.premisesName = premisesName;
	}

	public String getBuildingName() {
		return buildingName;
	}

	public void setBuildingName(String buildingName) {
		this.buildingName = buildingName;
	}

	public String getSignCode() {
		return signCode;
	}

	public void setSignCode(String signCode) {
		this.signCode = signCode;
	}

	public String getPaymentMethod() {
		return paymentMethod;
	}

	public void setPaymentMethod(String paymentMethod) {
		this.paymentMethod = paymentMethod;
	}

	public String getDidTime() {
		return didTime;
	}

	public void setDidTime(String didTime) {
		this.didTime = didTime;
	}

	public String getContactType() {
		return contactType;
	}

	public void setContactType(String contactType) {
		this.contactType = contactType;
	}

	public String getUnitName() {
		return unitName;
	}

	public void setUnitName(String unitName) {
		this.unitName = unitName;
	}

	@Override
	public String toString() {
		return "MarketingModel [roomName=" + roomName + ", customerName=" + customerName + ", customerPhone="
				+ customerPhone + ", documentType=" + documentType + ", documentNumber=" + documentNumber
				+ ", contactAddress=" + contactAddress + ", postcode=" + postcode + ", subscribeCode=" + subscribeCode
				+ ", subscribeDate=" + subscribeDate + ", conversionSignDate=" + conversionSignDate
				+ ", depositReceivable=" + depositReceivable + ", discountAfterPrice=" + discountAfterPrice
				+ ", dealCategory=" + dealCategory + ", agentName=" + agentName + ", proportionCommission="
				+ proportionCommission + ", discountNote=" + discountNote + ", remark=" + remark
				+ ", isHaveSubscribeAmount=" + isHaveSubscribeAmount + ", isConversionSign=" + isConversionSign
				+ ", errorInfo=" + errorInfo + "]";
	}

}
